package network;

import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeListener;

import mediator.Mediator;

public class MyPropertyChangeListener implements PropertyChangeListener{

	private int row;
	Mediator med;
	
	public MyPropertyChangeListener(Mediator m , int i) {
		row = i;
		med = m;
	}
	@Override
	public void propertyChange(PropertyChangeEvent evt) {
		if (evt.getPropertyName().equals("progress"))
			med.setProgress((Integer)evt.getNewValue(), row);
	}
		
}


